
bangkeapp.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) {
	$ionicConfigProvider.views.maxCache(0);  
//	$ionicConfigProvider.platform.ios.tabs.style('standard'); 
//  $ionicConfigProvider.platform.ios.tabs.position('bottom');
    $ionicConfigProvider.platform.android.tabs.style('standard');
    $ionicConfigProvider.platform.android.tabs.position('bottom');

//  $ionicConfigProvider.platform.ios.navBar.alignTitle('center'); 
//  $ionicConfigProvider.platform.android.navBar.alignTitle('center');
//
//  $ionicConfigProvider.platform.ios.backButton.previousTitleText('').icon('ion-ios-arrow-thin-left');
//  $ionicConfigProvider.platform.android.backButton.previousTitleText('').icon('ion-android-arrow-back');        
//
//  $ionicConfigProvider.platform.ios.views.transition('ios'); 
//  $ionicConfigProvider.platform.android.views.transition('android');

    $stateProvider
        .state('bangke', {
            url: "/bangke",
            abstract: true,
            templateUrl: "templates/navigation.html"
        })
    		.state('bangke.mall', {
            url: "/mall",
            views: {
                'mall-tab': {
                    templateUrl: "templates/mall/mall.html",
                    controller: 'mall'
                }
            }
        })
        .state('bangke.artical', { // 文章
            url: "/artical",
            views: {
                'artical-tab': {
                    templateUrl: "templates/artical/artical.html",
                    controller: "articalhomectrl"
                }
            }
        })
        .state('bangke.articallist', { // 文章列表
            url: "/articallist/:coursetype",
            views: {
                'artical-tab': {
                    templateUrl: "templates/artical/articallist.html",
                    controller: "articallistctrl"
                }
            }
        })
        .state('bangke.articaldetail', { // 文章详情
            url: "/articaldetail/:id",
            views: {
                'artical-tab': {
                    templateUrl: "templates/artical/articaldetail.html",
                    controller: "articaldetailctrl"
                }
            }
        })
        .state('bangke.noticedetail', { // 公告详情
            url: "/noticedetail",
            views: {
                'artical-tab': {
                    templateUrl: "templates/artical/noticedetail.html",
                }
            }
        })
        .state('bangke.cloumnlist', { // 课堂列表
            url: "/cloumnlist",
            views: {
                'artical-tab': {
                    templateUrl: "templates/artical/cloumnlist.html",
                }
            }
        })
        .state('bangke.cloumndetail', { // 课堂详情
            url: "/cloumndetail",
            views: {
                'artical-tab': {
                    templateUrl: "templates/artical/cloumndetail.html",
                }
            }
        })
        .state('bangke.memberhome', {//会员中心
            url: "/memberhome",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/memberhome.html",
                    controller: 'memberhome'
                }
            }
        })
        .state('bangke.interestsaccount', {  // 查看我的积分账户
            url: "/interestsaccount/:type",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/account/interestsaccount.html",
                    controller: "interestsaccountCtrl"
                }
            }
        })
        .state('bangke.upgrade', {  // 我要升级
            url: "/upgrade",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/upgrade/upgrade.html",
                    controller: "toupgrademember"
                }
            }
        })
        .state('bangke.silvercard', {  // 升级银卡
            url: "/silvercard",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/upgrade/silvercard.html",
                    controller: "upgrademember"
                }
            }
        })
        .state('bangke.goldencard', {  // 升级金卡
            url: "/goldencard",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/upgrade/goldencard.html",
                    controller: "upgrademember"
                }
            }
        })
        .state('bangke.intereststransfer', {  // 股权转让
            url: "/intereststransfer",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/transfer/intereststransfer.html",
                    controller:"intereststransferCtrl"
                }
            }
        })
        .state('bangke.redtransfer', {  // 红包转账
            url: "/redtransfer",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/transfer/redtransfer.html",
                    controller:"redtransferCtrl"
                }
            }
        })
        .state('bangke.withdrawals', {  //提现
            url: "/withdrawals",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/withdrawals.html"
                }
            }
        })
        .state('bangke.bonusexchange', {  // 红利兑换
            url: "/bonusexchange",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/bonusexchange.html"
                }
            }
        })
        .state('bangke.memberlist', {  // 会员列表
            url: "/memberlist",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/memberlist.html",
                    controller: 'memberlist'
                }
            }
        })
        .state('bangke.referee', {  // 我的推荐人
            url: "/referee",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/referee.html",
                    controller: 'referee'
                }
            }
        })
        .state('bangke.mycenter', { // 个人中心
            url: "/mycenter",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/mycenter.html",
                    controller:"mycenterctrl"
                }
            }
        })
        .state('bangke.mymemberinfo', { // 我的会员信息
            url: "/mymemberinfo",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/mymemberinfo.html",
                    controller:"mymemberinfoctrl"
                }
            }
        })
        .state('bangke.equity',{//我的初始股权
        		url: "/equity",
        		views: {
        			'mycenter-tab':{
        				templateUrl: "templates/center/equity/equity.html",
        				controller:"equityctrl"
        			}
        		}
        })
        .state('bangke.score', { // 我的积分
            url: "/score",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/score.html"
                }
            }
        })
        .state('bangke.safe', { // 我的安全中心
            url: "/safe",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/safe/safe.html",
                    controller: "safectrl"
                }
            }
        })
        .state('bangke.updatepwd', { // 修改密码
            url: "/updatepwd",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/safe/updatepwd.html",
                    controller: "updatepwdctrl"
                }
            }
        })
        .state('bangke.updatepaypwd', { // 修改支付密码
            url: "/updatepaypwd",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/safe/updatepaypwd.html",
                    controller: "updatepaypwdctrl"
                }
            }
        })
        .state('bangke.resetpaypwd', { // 重置支付密码
            url: "/resetpaypwd",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/safe/resetpaypwd.html",
                    controller: "resetpaypwdctrl"
                }
            }
        })
        .state('bangke.advance', { // 预付款账户
            url: "/advance",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/recharge/advance.html",
                    controller: "advance"
                }
            }
        })
//      .state('bangke.advanceupload', { // 上传预付款充值请求单据
//          url: "/advanceupload?img",
//          views: {
//              'memberhome-tab': {
//                  templateUrl: "templates/member/advanceupload.html",
//                  controller: "advanceupload"
//              }
//          }
//      })
        .state('bangke.mycode', { // 我的二维码
            url: "/mycode",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/mycode.html",
                    controller:"mycodectrl"
                }
            }
        })
//      .state('bangke.uploadidcard', { // 上传身份证照片
//          url: "/uploadidcard",
//          views: {
//              'mycenter-tab': {
//                  templateUrl: "templates/center/uploadidcard.html",
//                  controller:"uploadidcardctrl"
//              }
//          }
//      })
        .state('bangke.car', { // 帮客汽车
            url: "/car",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/car/car.html",
                    controller:"carctrl"
                }
            }
        })
        .state('bangke.mpf', { // 帮客话费
            url: "/mpf",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/mpf/mpf.html",
                    controller:"mpfctrl"
                }
            }
        })
        .state('bangke.cbd', { // 帮客房产
            url: "/cbd",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/cbd/cbd.html",
                    controller:"cbdctrl"
                }
            }
        })
        .state('bangke.mob', { // 帮客手机
            url: "/mob",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/mob/mob.html",
                    controller:"mobctrl"
                }
            }
        })
        .state('bangke.initpaypwd', { // 初始化支付密码
            url: "/initpaypwd?inurl",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/transfer/initpaypwd.html",
                    controller:"initpaypwdctrl"
                }
            }
        })
        .state('bangke.sign', { // 签到
            url: "/sign",
            views: {
                'memberhome-tab': {
                    templateUrl: "templates/member/sign/sign.html",
                    controller:"signctrl"
                }
            }
        })
        .state('bangke.newsafe', { // 新安全中心
            url: "/newsafe",
            views: {
                'mycenter-tab': {
                    templateUrl: "templates/center/newsafe/safecenter.html",
                    controller:"newsafectrl"
                }
            }
        });
        
    $urlRouterProvider.otherwise("/bangke/memberhome");

});